//
//  RTDiscoverViewController.m
//  WeiboSina
//
//  Created by Brisinga on 16/3/4.
//  Copyright © 2016年 Root. All rights reserved.
//

#import "RTDiscoverViewController.h"
#import "RTSearchView.h"

@interface RTDiscoverViewController ()

@property (nonatomic, strong) RTSearchView *searchView;

@end

@implementation RTDiscoverViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    if (!islogin) {
        
        [self.visitorView setVisitorViewWithImageName:@"visitordiscover_image_message" message:@"登录后，最新、最热微博尽在掌握，不再会与实事潮流擦肩而过"];
        
        return;
    }
    
    // 初始化
    [self setupUI];
}



#pragma mark - 初始化
- (void)setupUI {
    
    self.searchView.width = kScreenWidth;
    self.searchView.height = 35;
    self.navigationItem.titleView = self.searchView;
    
    
}


#pragma mark - 布局子控件
- (void)setLayout {
    
    
}



#pragma mark - 懒加载searchView
- (RTSearchView *)searchView {
    
    if (nil==_searchView) {
        
        _searchView = [[RTSearchView alloc] init];
        
    }
    
    return _searchView;
}

@end
